import random
a=random.randint(1,100)
i=input("Please enter a number between 1 and 100")
while(i.isdigit()==False or int(i)<0 or int(i)>100):
    i=input("Please enter a number between 1 and 100")
i=int(i)
while i!=a:
    if i<a:
        print("Too low")
        i=input("Please enter a number between 1 and 100")
        while(i.isdigit() == False or int(i) < 0 or int(i) > 100):
            i=input("Please enter a number between 1 and 100")
        i=int(i)
    else :
        print("Too high")
        i = input("Please enter a number between 1 and 100")
        while (i.isdigit() == False or int(i) < 0 or int(i) > 100):
            i = input("Please enter a number between 1 and 100")
        i = int(i)
print("Correct")
print("Thanks for playing")